]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
global: Stop using clutter_get_default_backend
authorBilal Elmoussaoui <belmouss@redhat.com>
Mon, 16 Mar 2026 21:31:16 +0000 (22:31 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 23 Apr 2026 13:35:21 +0000 (13:35 +0000)
Adapt to change proposed at https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4981

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4135>

src/shell-global.c

index fb8ea9a131b8292a66d8b80495976e562b16eedb..b6565a64e00dd670dbbf1c4cf4ebce47731ab1d9 100644 (file)
@@ -897,8 +897,8 @@ global_stage_after_paint (ClutterStage     *stage,
 {
   /* At this point, we've finished all layout and painting, but haven't
    * actually flushed or swapped */
-
-  ClutterBackend *backend = clutter_get_default_backend ();
+  ClutterContext *context = clutter_actor_get_context (CLUTTER_ACTOR (stage));
+  ClutterBackend *backend = clutter_context_get_backend (context);
   CoglContext *cogl_context = clutter_backend_get_cogl_context (backend);
   CoglDisplay *cogl_display = cogl_context_get_display (cogl_context);
   CoglRenderer *cogl_renderer = cogl_display_get_renderer (cogl_display);